#ifndef TESTWINDOW_H
#define TESTWINDOW_H

#include <QMainWindow>
#include <QGraphicsScene>
#include "grid.h"

namespace Ui {
    class testwindow;
}

/*! \class testwindow
    \brief Главное окно.
*/
class testwindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit testwindow(QWidget *parent = 0);   //!< Конструктор по умолчанию
    ~testwindow();

private:
    Ui::testwindow *ui;
    QGraphicsScene *scene;
    Grid *grid;

    void drawNet();
    inline void addRect(QRectF rect){scene->addRect(rect);grid->pushRect(rect);}
};

#endif // TESTWINDOW_H
